/* 
 * lec16-4.c
 */
#include <stdio.h> 
#define SIZE 10 
int main ( ) {
   int ar[SIZE]; 

   int i=0, sum=0; 
   for (i=1; i<=SIZE; ++i) 
       ar[i]=i; 
  
   printf("Sum from %d to %d is ", 1, SIZE); 
   while (i>0) 
      sum += ar[i--]; 
   printf(" %d\n", sum); 
   return 0; 
}
